package com.ddm.entity.webEntity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 课程信息
 * </p>
 *
 * @author [你的名字]
 * @since [日期]
 */
@Data
@ApiModel(value = "Course对象", description = "课程信息实体")
public class Course {

    @ApiModelProperty(value = "课程表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "视频名称")
    @TableField("video_name")
    private String videoName;

    @ApiModelProperty(value = "视频链接")
    @TableField("video_url")
    private String videoUrl;

    @ApiModelProperty(value = "视频发布日期")
    @TableField("video_publish_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime videoPublishDate;

    @ApiModelProperty(value = "视频作者")
    @TableField("video_author")
    private String videoAuthor;

    @ApiModelProperty(value = "视频图片")
    @TableField("video_img")
    private String videoImg;

    @ApiModelProperty(value = "视频摘要")
    @TableField("video_abstract")
    private String videoAbstract;

    @ApiModelProperty(value = "视频类型")
    @TableField("type")
    private String type;
}